package com.ygqh.baby.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.Action;
import com.ygqh.baby.po.ActionExample;

public interface ActionMapper {
	int countByExample(ActionExample example);

	int deleteByExample(ActionExample example);

	int deleteByPrimaryKey(Long id);

	int insert(Action record);

	int insertSelective(Action record);

	List<Action> selectByExample(ActionExample example);

	Action selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") Action record, @Param("example") ActionExample example);

	int updateByExample(@Param("record") Action record, @Param("example") ActionExample example);

	int updateByPrimaryKeySelective(Action record);

	int updateByPrimaryKey(Action record);

	int countSuper(@Param("state") String state, @Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("q") String q);

	List<Action> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("state") String state, @Param("startDate") Date startDate,
			@Param("endDate") Date endDate, @Param("q") String q);

}
